Skip to content

Conversation

@ptgms
Copy link
Member

@ptgms ptgms commented Sep 30, 2025

No description provided.


let curatorMode = false;
let apiUrl = DEFAULT_API_URL;
let language: SupportedLanguage = 'en';
Copy link
Contributor

@shadowwwind shadowwwind Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should set all three in constants

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are user-adjustable, thus not constant

Copy link
Contributor

@shadowwwind shadowwwind Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the defaults ;D
So the default apiURL comes from DEFAULT_API_URL in constants.ts, while language and curatorModes defaults are set here in state.s

Copy link
Contributor

@shadowwwind shadowwwind Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can set them in state.ts if you prefer that. i think if i wanted to change them i would first look at constants.ts

}

export function setLanguage(value: SupportedLanguage): void {
language = value;
Copy link
Contributor

@shadowwwind shadowwwind Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would group these last two with the ones above hydrateState

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are convential setters and getters, it doesnt really make sense there imho

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5 Security Hotspots
E Security Rating on New Code (required ≥ A)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@shadowwwind
Copy link
Contributor

The two duplicated IDs spotted by the quality gate are the last things I see, we can merge after fixing them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants